#ifndef SERVER_H
#define SERVER_H

#include "header.h"
#include "structClient.h"

void winstart(void);
void winstop(void);
void cerveau(void);
int debutConnexion(void);
void finConnexion(int sock);
int lireTexte(SOCKET sock, char *buffer);
void ecrireTexte(SOCKET sock, const char *buffer);
void diffuserMessage(Client *clients, Client client, int actual, const char *buffer, char from_server);
void supprimerClient(Client *clients, int to_remove, int *actual);
void supprimerClients(Client *clients, int actual);
int ecrireBinaire(SOCKET sock, void *buffer, int taille);
int lireBinaire(SOCKET sock, void *buffer, int taille);
#endif
